package test;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class testJson {
    public static void main(String[] args) throws IOException {
        readJsonFile();
    }
    public static String readJsonFile() throws IOException {
        StringBuilder content = new StringBuilder();
        String filePath="D:\\Java\\workspace\\rowdfunding_system\\src\\main\\resources\\json\\city.json";
        BufferedReader reader = new BufferedReader(new FileReader(filePath));
        String line;
        while ((line = reader.readLine()) != null) {
            content.append(line);
        }
        reader.close();
        System.out.println(content.toString());
        return content.toString();
    }
}
